package cn.wowjoy.pda.android_pharmacy.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import cn.wowjoy.pda.android_pharmacy.R;
import cn.wowjoy.pda.android_pharmacy.common.core.BaseActivity;
import cn.wowjoy.pda.android_pharmacy.databinding.ActivitySettingBinding;
import cn.wowjoy.pda.android_pharmacy.mvvm.presenter.SettingPresenter;
import cn.wowjoy.pda.android_pharmacy.mvvm.vm.SettingViewModel;

public class SettingActivity extends BaseActivity<ActivitySettingBinding,SettingViewModel,SettingPresenter> {
    @Override
    protected void init(Bundle savedInstanceState) {
        binding.settingTitle.titleTextTv.setText("设置");
        binding.rlSettingModifyPsw.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(SettingActivity.this,ModifyActivity.class));
            }
        });

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_setting;
    }

    @Override
    protected Class<SettingPresenter> getPresenterClass() {
        return SettingPresenter.class;
    }

    @Override
    protected Class<SettingViewModel> getViewModelClass() {
        return SettingViewModel.class;
    }
}
